import instance from './http'

export const login = (msg: { name: string; password: string }) => {
  return instance.post('/user/login', msg)
}
export const getInfo = () => {
  return instance.get('/user')
}
export const getInfo1 = (name: string) => {
  return instance.get(`/user/${name}`)
}
//微信登陆
export const wxlogin = (code: string) => {
  return instance.post('/user/login', { code })
}
